var app = angular.module('myApp', []);
app.run(function($rootScope){//$rootScope变量名不可改名
	var t = $rootScope;
	t.name = "Ari Lerner";
});

app.controller('firstController', function($scope){//$scope变量名不可改名
	$scope.person = {
		name : 'firstName'
	};
});

app.controller('firstChildController', function($scope) {
  $scope.sayHello = function() {
    $scope.person.word = "Hello";
  }

  $scope.childName = "Ketty";
});